import { TOGGLE_MAIN_MENU } from '../mutation-types'

const state = {
    toggleSiderBar: true,
    systemTittle: '佛山机动车管理系统'
}

const getters = {

}


const mutations = {
    [TOGGLE_MAIN_MENU](state) {
        state.toggleSiderBar = !state.toggleSiderBar
    }
}

const actions = {
    toggleMenu({ commit }) {
        commit(TOGGLE_MAIN_MENU)
    }
}

//export
export default {
    state,
    getters,
    actions,
    mutations
}